package com.example.ws.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.ws.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 继承BaseMapper(泛型类)，该类用于处理数据库基本操作(增/删/改/查)
 *
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from t_user where name = #{name} and password = #{password} ")
    User selectAllCount(@Param("name")String name,@Param("password") String password);
}
